package com.zyong.design.pattern.decorator.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Garnish
 * @author: zyong
 * @create: 2024-04-28 00:25
 */
public abstract class Garnish extends FastFood {
    private FastFood fastFood;

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
